{% import 'admin/layout.html' as layout with context -%}
{% extends 'admin/base.html' %}

{% block head_tail %}
  {{ super() }}
    <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
{% endblock %}

{% block page_body %}
    <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="{{ url_for('avbd_app.index') }}">AVBD</a>
        </div>

        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav ">
               {{ layout.menu() }}
	    {{ layout.menu_links() }}
          </ul>


            </div><!--/.nav-collapse -->
    <div class="container">
      <div id="content" >
    	{% block brand %}
    	<h2 id="brand">{{ admin_view.name|capitalize }}</h2>
    	{% endblock %}
    	{{ layout.messages() }}
	{% set render_ctx = h.resolve_ctx() %}
        {% block body %}{% endblock %}
      </div>
     </div>
      </div>

{% endblock %}